def indice_to_pos(image_size, indice):
    """Converts indice of a pixel in image(index number in array of pixels) to x,y coordinates.

    Args:
        image_size:
        indice: index number in image's array of pixels.

    Returns:
        tuple: pair of values representing x,y coordinates corresponding to given indice.
    """
    size_x, size_y = image_size
    pos_y = indice / size_x
    pos_x = indice % size_x
    pos = pos_x, pos_y
    return pos