Fix resolution changing code - now height is no longer the same
as width