get rid of unecessary images