Wrote a program to get b8 from xbm format.