Fix to KakaduImage.cc to enable correct handling of bilevel images.