high dpi devices support

http://www.html5rocks.com/en/tutorials/canvas/hidpi/