core: use default image orientation of 1 if no orientation present..

(cherry picked from commit 73454d4c7efa0dc5868f1572c5542ebe24d1fd35)