Add close and fill options to auto close polyline shape and fill it.