upload photo and get photo code