how can i define a new imgae in the toolbar icon with new type?
I think it would be better to use batches. In this case, all elements are set initially, but only some of them are shown. Then you can switch batches depending on app logic:
dhtmlxTouch_v12_120913/samples/03_toolbar/04_button_sets.html
If there is only one button that you want to switch, you can use “hidden” attribute when use hide()/show() methods:
dhtmlxTouch_v12_120913/samples/01_views/03_hidden_view.html
This demo is about layout, but you can apply the same approach for toolbar (it is based on layout)