added uploadPhoto method