allow polygon options to be passed in. Closes #1