Refactors CanvasRenderer to not access rekapi.renderer.