delete  unnecessary images