I haven't seen this thread before, I might have use for this too!

Also if anyone needs to embed cross-platform jpeg-support there is the excellent NanoJpeg implementation, and my Pascal port of it.