replaced TIFF I/O with 16-bit grayscale input and 16-bit RGB output; tested with an all-white sensor mask