How to use icon from im1

i use dhtmlx tree load xml follow this

<item child="1" im0="image0.jpg" im1="image1.jpg" im1="image2.jpg"></item>

but why it show image from im0 ?

this is my init tree function

	tree=	new dhtmlXTreeObject("treeCatelog","100%","100%",0);
	tree.setImagePath("/html/images/");
	tree.setOnClickHandler(onTreeCatelog_Select);
	tree.enableTreeImages(true);
	tree.loadXML("/restaurant/menumanage.xml",function(){
		tree.openAllItems(0);
	});

Please check tutorial here docs.dhtmlx.com/doku.php?id=dhtm … nipulation
img0 attribute is for leaf node
img1 attribute is for expanded parent node
img2 attribute is for collapsed parent node