Updated the size of the canvas