text jpg
original function that converts jpg to txt file