edit tile using referenec image maintain all other pixels in the image exactly