nodesList now is a key-value array
added id and image fields to DiagramNode
implemented exportToJSON function