This bitmap has like 16 colors and I'm saving it in the default pixel format (number of colors). If I lower the pixel format down I should be able to write to the bitmap just fine!
The image has 16 colours, and the client requires it to be a JPEG? Sounds like it shouldn't be your forehead you should be slapping.

Peter