def ascii_chars_to_image(ascii_chars, width=250):
    """Function to take a string of ASCII chars, and append a new line character after X (width) of pixels.

    This essentially translates the ASCII string to an image.
    """

    # join a newline character after every X amount of pixels (ie if width is 100, adds a newline char every 100 chars)
    return "\n".join(
        ascii_chars[i : i + width] for i in range(0, len(ascii_chars), width)
    )