No, the gallery should be sized to accommodate the smaller images. when you set the image width and hight for the images, this is applied to the image tag as well, so even if the resize script did not resize the images, the image tag would still be set to show the image at a larger size causing the distortion.