Delete the db record if the image doesn't exist