I would recommend that all the original images you use for your shop are the same size and aspect ratio ( preferably square ) when they are uploaded.
Although you can use some code to force them to the same size it means the images need to be cropped which could lead to losing parts of the image you may want to remain visible.
Do you have a site with the images in place so i can see if there is a simple fix?