Image File Format:

Width: 1 byte
Height: 1 byte
Bits per Pixel: 1 byte
n bits of pixel data

n = Width * Height * Bits per Pixel