Tweaked convert_image_to_text