- Fixed a minor bug where pgm max grayscale value could be equal to 0.