fix upload photo on edit