change upload photo method