DNN-5852 Catch exception when uploaded image dimensions can't be determined
DNN-5852 Ensure Orientation gets set even if exception is caught