OCR can detect page orientation

This isn't perfect, but it helps prevent the OCR from just spewing
garbage when images are rotated.