fix new image upload in dialog after upload previous image