Updated the XPM2 image format loader