inputing photo gallery