If anyone wants to muck around, the #Emacs source tree still has a bunch of XPM images, and more or less assumes that -lXpm will work.
It already supports PNG, too. Maybe convert the XPM to PNG?
(bigger project: make emacs use glycin for sandboxed image loading on Linux)