setting canvas width and height should clear the canvas