This topic comes up now and again (e.g., http://cscott.net/Publications/OLPC/ufrgs-talk.pdf). I raised it in the context of wanted to create SVG files with embedded image data.