fix default value for options.maxImageSize