Temporarily fixed issue for pictures with broken EXIF orientation mark. The bug location is still unclear but a fix could be to turn the images in an error case to portrait format.