Updated the XPM image format loader

- Added support for non-standard 3D XPM images.