TMI-PSD: Added support for PSB (aka "Large Document Format")
Added support for 32 bit channels.
Added test cases + fixed a few bugs
General code clean-up
TMI-27, TMI-28: Source region and subsampling support.