match the colors to the reference image