gallery image bug finished