Refactor Icon Path Code

Create new nodeTypes object to make adding/removing node types easier.

Create new getIconPath() function to clean up code and automate icon
path finding code based on types declared in nodeTypes object.