Changed display size initilization to use display width and height