Added screenshot taking to Window.