Updated galery plugin