fixes to image gallery