Implement export to cairo