cvMorping v1.2 -change linesFn dynamically