Made dither patterns into integer

In binary, the new format is AAAABBBBCCCCDDDD where A is first pixel, B is second, etc