add a new image and remove the swp file