Updated the diagrams backend to work with the new paths/trails introduced in diagrams 0.6.1