runlength encoding for 8-color Bitmap