An image sorter