Replace deprecated getWidth and getHeight

http://stackoverflow.com/questions/6520718/how-to-get-screen-width-and-height