[Mac] Implement ToBitmap
[Mac] Fix image rendering