Fixes the bug that `closepath` is handled properly.
Support for the ellipse element.