Added methods to set and get size of window which Fixes #6
Also added method to takeScreenshot.