clear closestCurves and closestVertices on clear image
add a sanity check when drawing curves for move
Merge pull request #98 from wesen/bug/crash-on-vector-move

Fix crash when moving a cleared vector layer