Added screenshot taking to Window class.