Auto-Resize and Rescale HTML5 Canvas.