added choice of viewportSize in options