def remove_alpha(pic):
    """
    Removes the alpha channel from an image, if it exists. Necessary for OCR.

    Args:
        pic: PIL.Image object to convert.
    
    Returns:
        The PIL.Image object in RGB format.
    """
    return pic.convert("RGB")