Added workaround to make ZXScanLib work in portrait mode