resized the canvas