Use absolute paths for templates and images.

This is required as relative are *not* relative to the script but relative to the HTML page that loaded the script.