Changes to galleria plugin