modify edit event. in case new picture is not uploaded then old one is kept