Add upload photo API.