Fixes a bug in drawing bitmap images in the macosx backend for handling device scaling

Current implementation does not take into account any transforms being applied to user space and will result in wrong sizes for the CGRect being passed to CGContextDrawImage. This fixes that bug while maintaining the device scaling support used for hi-resolution (retina) displays.