Updated uploadPhoto.php