Hacked in rudimentary support for images - warning: it's ugly. It's not a feature I really need 99% of the time so just added this as an extra.