Implement baseline TIFF spec for bilevel images.
Fix bug regarding bits being in the reverse order in the image bytes.