Remove unneeded images