<!--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>