Add --connect, --remove-close and --simplify options