recolor the image using the materials in the refence image