Correct reference to canvas width and height.