change phpGraph->render() to non-static method