fix for gallery images