removes extra image files