Fixes the cropped image having original rotation when the picture is taking long in portrait