create interface and implement upload photo