I would recommend using targa files instead of bmp or pcx, this may help you