converts an image into a text file