Fixing scaling bugs on retina machines.

Moving away from the 'NSImage lockFocus' API for accessing the context as this inherits the device's scale and therefore unexpectedly scales up the images on retina devices.