photo gallery fixes