Fix UIImage orientation to draw it on CGContext