remove useless images