Adjust Window Size

This adjusts the size of the canvas to the size of the image.