add uploadPhoto() API'