Added second parameter to render() for setting label position