render the input image to match the same style as the reference image