add polygon support
Merge pull request #27 from zard17/master

add polygon support