image gallery fix