Handle image reupload correctly.