Update window size and screenshot