def image_size(data):
    """
    Parameters
    ----------
    data : numpy.ndarray
        Image data.

    Returns
    -------
    tuple (int, int)
        Image width and height.
    """

    image_shape = data.shape
    return (image_shape[0], image_shape[1])