testing
rewritten output, producing pgm format, detection of first bit wrong -> errors arround 32768