change the paint color of the upload image to the color provided in the reference image