Adding support for device scale (fix for retina mac)