messing about photo gallery on the backend