pic1= new Image(100,25);
With most things in templates, such as images, when the template creates a page it rewrites the path to the image so that the page created from the template points to the correct place. Ie. in the template the path will be /img/navbarh.gif instead of ..img/.
Why not use a site-root-relative link?