updated tree and tree events to return set of vertices as image of tree