def mipmap_size(base_width, base_height, mip_level):
    """Return mipmap width and height

    Args:
        base_width (int): Width of the base image (mip level 0)
        base_height (int): Height of the base image (mip level 0)
        mip_level (int): Level of mip to get

    Returns:
        tuple(mip_width, mip_height)
    """
    width = base_width
    height = base_height

    for _ in range(mip_level):
        width = width // 2 or 1
        height = height // 2 or 1

    return width, height