I recently asked a question on how to draw an image larger than my canvas onto the canvas without cropping and save the image back into its original dimensions after perform
This behaviour is commonly used for controlling the size of a canvas:
See Canvas width and height in HTML5.