Moved Graymap logic into a file, which incorporates PGM reading.
That loop doesn't matter.