Added methods to get window size.