Fixed rendering logic and exposed graphlib