Add support for (uncompressed) sub-byte bitsPerSample. Fix color sample clamping to actually space out colors evenly.