Fixed the screenshot function for failed UI tests.