fix CustomImageGallery