Add Retina support

Added Retina screen support by adding an optional scale parameter.