Fix memory leaks, remove tesseract calling and rename to libTesseractUtil.