can now operate on cairo paths and memoize them automatically