Make the do not generate option for OCR work.
Merge pull request #33 from jordandukart/7.x-fix-ocr-flag

Make the do not generate option for OCR work.