EDITABLE CODE:
LiveDemo: HTML5 Canvas Image Width and Height