updated photo upload scripts