fix upload photo after edit patient