Some improvements to the image gallery