tiff: Switch assertions to exceptions
tiff: generalise field
tiff: Replace switch with case
tiff: Add enums
tiff: Add enums
tiff: Add enums
tiff: Add enums