removing useless images