Delete the old image at the same time.