reduced the size of the canvas to fit a smaller image