Cobalt: Image file format

LengthDescription
0x10Palette
0x30Tool settings
0x40Shape data
0x40Pattern data
0x02Image width
0x02Image height
0x--Image data

Image width and height are stored in big-endian byte order.