Basic OCR functionality added

It's slow and inaccurate, so I'm planning to try other software (such as
tesseract)
Also implementation-wise, it makes too many system calls