update the color of the uploaded image to the color provided in the reference image