Swap width and height in getResolution