def image_to_text(image, threshold):
    """Converts an image to text, lighting pixel greater than a threshold"""
    text = ""
    for y in range(image.size[1]):
        for x in range(image.size[0]):
            if image.getpixel((x, y)) > threshold:
                text += "^^"
            else:
                text += "  "
        text += "\n"
    return text.rstrip()