Own method takeScreenshot that takes the Screenshot implemented