Email with inline images

Sometimes it's useful to send images in emails.  On occasion, I've used a text component to include an img tag pointing to an image to include.  In one instance, I was looking to actually include images in the email.  I've attached a protocol, but it's not very general (and it may be guessable from the colors which version the underlying code is modified from) and I was wondering if there is any thought to include that functionality?