fix edit picture bug