fix new image gallery support in GalleryData