remove unneeded images