Use tesseract API to detect image orientation