template image plugin

This now works against the template-specific folder in the media library
template editor - more work for new html editor