Example: Image 24 should be directly followed by image 26, with key being the filenames (07LegsOut and 08LegsOut respectively), but it is followed by the image from another segment. This is happened because images from several segments of the same super-set were named in a very specific way - filename starting from image number in sub-set - and then placed in the same directory, which led to all the images to being sorted by name, with all the '01name', '02name', et cetera being clumped together regardless of their correct order in sets.