render the input image in the same style as the reference image