Fixes wrong preview size in portrait mode

Hi! There is a problem with preview size in portrait mode, we need to swap x and y dimensions to get right targetRatio otherwise it fallback to closest height which is wrong anyway. This problem become critical when camera reports both portrait and landscape sizes in one list (Moto Atrix2 for ex.) and landscape aspect size are choosen in portrait mode as a result.