modified photo gallery routes