images sorted and cleaned