1. A method comprising: segmenting image data into a plurality of objects including a first object; recursively generating fragments from the first object and associating each fragment with information describing creation of the fragment, the information comprising a connection between a previous larger fragment and a smaller fragment generated from the larger fragment at a start edge or a start scan-line of the smaller fragment; generating an order in which the fragments are to be sewn based on the information, the order to reduce thread cuts or increase path connectivity between the fragments; and generating an image output file representative of an embroidery design based on the fragments and the order.