Deletes image files that are no longer used.