More image gallery tweaks: Trim the image gallery parameters to get the best results