Reads jpeg files from a tar file, and attempts to sort them by content.