Make lineart out of images by solving a traveling salesperson problem