Transform sketch by replacing free curves with mathematical curves, two display