removing uneeded images