Update canvas.js

Updated width and height expected with new calculation