Adding clear method to prevent memory leaks

I've added a new method in Tesseract class in order to prevent memory leaks. 
When an image was read the memory allocated in operation was not freed properly. Calling `clear` method fixes this and allow multiple usages through app lifecycle.