ChromeOptions options = new ChromeOptions();
options.AddArgument("--headless");
options.AddArgument("--window-size=1440,900");
options.AddUserProfilePreference("profile", new { default_content_setting_values = new { images = 2, javascript = 2 } });
var service = ChromeDriverService.CreateDefaultService();
service.HideCommandPromptWindow = true;
using (IWebDriver driver = new ChromeDriver(service, options))
{
    var savepath = Environment.CurrentDirectory;
    driver.Navigate().GoToUrl(savepath+ "\\test.html");
    var savepathname = savepath + "\\Img\\test1.png";
    Screenshot screenShotFile = ((ITakesScreenshot)driver).GetScreenshot();
    screenShotFile.SaveAsFile(savepathname, ScreenshotImageFormat.Png);
    Thread.Sleep(100000);
}<!DOCTYPE html><html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title>test html</title>
</head>
<body>
    <div id="test">
        This is test
    </div>
<div>
<img src="https://www.bing.com/az/hprichbg/rb/ToyXmasTree_EN-US5514346051_800x480.jpg"/>
</div>
<script type="text/javascript">
        document.getElementById('test').innerHTML += "</br>This is javascrtip test";
    </script>
</body>
</html>用无头请求网页,并且截图。但是我禁止了图片和JavaScript,在无头中,它依然执行
截图图片
我注释了代码后  
//options.AddArgument("--headless");
然后截图就是下面这图片。
请问,怎么在无头模式下,禁用JS和图片???