fix camera image issue when shooting in portrait mode.