Fix bug #372: Warp Layer not implemented in Cairo
Warp layer (Cairo): simplify code.