; // There are only 16 images on the server
      return 'images/HS' + pic;
    }

    // define the Node template
    myDiagram.nodeTemplate = new go.Node('Auto')
      // for sorting, have the Node.text be the data.name
      .bind('text', 'name')
      // bind the Part.layerName to control the Node's layer depending on whether it isSelected
      .bindObject('layerName', 'isSelected', (sel) => (sel ? 'Foreground' : ''))
      .add(
        // define the node's outer shape
        new go.Shape('Rectangle'