fixed bug in nested images, stylesheets and javascripts in themes