Changed HEIGHT to SIZE ,

Also made it work when height>width.
Try resizing the window around!