change the way to upload photo