replace the textures of the image using the references but keep the same shapes