Add support for reading and writing XPM images, and some tests. Support for reading rgb.txt colours is provided, but the necessary rgb.txt file is not yet included because it's under a different license.