Added pollForResize option

Defaults to true. Setting to false stops the viewer from checking and handling resizes.

Enhancement that fixes #290