removes the old photo when the altered by new photo