FIX: initial contour should be clockwise!