The image ratio is to be maintained

When the images are displayed as a square or circle, the image ratio is to be maintained.