Added support for high DPI canvasses

In Chrome/Firefox on a retina Mac Book Pro the icons look fuzzy; added a fix that compares window.devicePixelRatio with context.backingStorePixelRatio to scale the canvas as necessary.

For Safari on high dpi screens nothing happens as it automatically solves the high DPI canvas problem.