Ok, and can Netpbm convert .bmp to what I need? If so, I'm having trouble getting that whole mess running... Sorry for all the questions, but I'm not very experienced with file formats etc.

Edit: And also, what is the correct syntax for writing, and reading at Offset?