fix up type of xReadBitmapFile