streamlining internal representation of types in ImageFileDirectory
Using the public interface rather than the raw, undecoded interface
Changes in the internal representation of ImageFileDirectory