qnx 4 - qnx 6 photon applications widget file format

Im attempting to write a program to correctly port a qnx 4 widget file to qnx 6 ( phab 1.14 → 2.01). Phab says it does this but it all it changes are the dimensions and a few other minor widget attributes. So far I understand the format of the widget file. My problem is wgtp files that contain graphical data ( such as the image for a PtOnOffButton widget) does anyone know the structure in which image data is stored in the file? I dont want to change the data just know how big it is so that i can skip over it.