Set the canvas dimensions