Added getheight and widht to main