Remove of unneeded images.