and your page URI was /gallery/category/1, your image will get requested from /gallery/category/1/img/button.gif which is obviously not what you want. To avoid that, you need to supply an absolute URI to your image ('/' + baseUrl + image path). You can use the bu() method from here:

and your page URI was /gallery/category/1, your image will get requested from /gallery/category/1/img/button.gif which is obviously not what you want. To avoid that, you need to supply an absolute URI to your image ('/' + baseUrl + image path). You can use the bu() method from here: