Layer_Bevel: Fix various mistakes in the previous implementation.
CurveWarp: add support for Cairo render using cairo_t*.