fixed imageGallery plugin