Modified TakeScreenshot