enhance screenshot logic when using chrome.