Option for rendering a screenshot of the page on failure or timeout

Added an option for screenshots of the test page to be rendered upon failure or timeout. Helps with debugging remote test page issues.