prototype smooth pen tool (in artistic plugin)