Fixed bug where camera preview in portrait mode was distorted