Fix image gallery widget