Actually, a slight correction on Jessie's post. I'm the person writing the image API backend which jessie mentioned, more up to date documentation for this (and a link to a package containing a few implementations of it) can be found at <a href=
http://jkoontz.arsdigita.com/api-doc/procs-file-view?version_id=61&path=packages/image-api/image-api.tcl>
http://jkoontz.arsdigita.com/api-doc/procs-file-view?version_id=61&path=packages/image-api/image-api.tcl</a> This is a newer version.