Are you sure you have to have code for the treeview to use the imagelist? A have made a database up (a long time ago) that had a treeview with an imagelist and I didn’t put in any code.
For that database, to add a node to the top level, I had
filterTree.Nodes.Add , 4, "HH1", "1- Piping"...