Fixing the gallery to work with centralized files