How tightly ggplotd is integrated with cairo? Could you give some advice where to start to implement custom renderer?