you were using is causing the issue. You can go further to test this by grabbing a sample greyscale Tiff file from <a href="https://memory.loc.gov/ammem/pictel/images/cutout/full/ny1b3g4.tif">here</a>.