remove useless images and fix io problems