Protect against files that don't have any images.
Support Image Structure dump. Add "done" marker. Fix TGTID printing.
Some refactoring to support TRE addition to the output dump.
Extend comparison of TRE metadata