use arc instead of elliptical arc, and close paths, and use null shape instead new Shape(), see #245