Fix image gallery display.