Added function to get screen width/height.