The companion object contains factory functions to create new instances with initialization.
Create a new instance with given maxWidth, maxHeight, validator and initialized according to init.