Add 1bpp, 8bpp, 15bpp, and 16bpp support to BMP encoder.