cleanup a residual declaration so that the java builds work again
properly support providing a cairo context
support providing a canvas to MolToImage