fix bug in snippets.class (media/image source handling)
fix bug in objectEdit.tpl template function