repackaged image gallery to fix overriden state