Remove useless images.