Plan 9 from Bell Labs’s /sources/patch/applied/bmp-read/readme
My bad, stupidity in reading colour mapped images.