Removing unneeded images