removes not used images