var imageHeight=100;
var imageWidth=100;
context.drawImage(image, 0, 0,imageHeight,imageWidth);
<!--use old school height/width to set correct aspect ratio on canvas css/style does not work-->
<canvas width="500" height="500" id="myCanvas"></canvas>