Support for images of all sizes in the photo gallery