I had a look at http://m-einfalt.de/xface_index.php and yes, it looks much more comprehensible. I don't know in which language it is written, but it looks sufficiently similar to algol/coral66/pascal for me to have attempted to disentangle it - if only I were 20 years younger!
Also, it looks self-contained, with all the data tables supplied.
I suspect that it would be much easier to write code to display an X-Face than to encode a picture, but of course I may be wrong in that…