add set screen size function to graphics