[Mac] Fix vector image rendering issue

Flip the image if the target surface is not flipped.