Added support for switching width and height dimensions on the preview from width:height to height:width.