<canvas> skeleton boilerplate with retina and high-dpi support