setImagePath for Windows on dhtmlxLayout

I have initialized the dhtmlxWindows in various situations and never had problems, however, when I try to initialize it associated with a Layout, the definition of ImagePath does not work.

var mainLayout;
var win_n;

function initMainLayout() {
mainLayout = new dhtmlXLayoutObject (document.body, “2E”);

}

function initWindowN(){

win_n = mainLayout.dhxWins.createWindow(‘nota_window’, 0, 0, 800, 430);
win_n.setImagePath(“…/incs/dhtmlxWindows/codebase/imgs/”);

}

The code above result in a “TypeError: win_n.setImagePath is not a function”

I will appreciate any orientation.

Strange behavior.
Please, make completed demo and attach it
docs.dhtmlx.com/doku.php?id=othe … leted_demo