Add Retina screens support

Upscale the canvas size when using High DPI screens (http://www.html5rocks.com/en/tutorials/canvas/hidpi/).
Tested on iPhone/iPad.