upload photo bug fix