refactoring ImageMetadataTableGenerator - work in progress