Delete useless images.