deletes extra image files