I want to save an image as a square (having the same number of pixels in the 2 dimensions). I also want it to be saved without any padding on the side. For this, the following c