Added a button to cancel the screen capturing process.