Actually polyline is valid, just make sure to render stroke on top of fill