width and height updates to canvas.width and canvas.height instead of actual numbers