The Robot class can capture the contents of the screen.