def create_deets_message(time, size, image):
    """Creates message of image details for the GUI client
    Image details returned include the time the image was
    uploaded or processed and the image size in pixels. If
    the image was original, the upload time is returned. If
    the image was inverted, the processed time is returned.
    Args:
        time (str): timestamp of upload/processing
        size (tuple): width, height of image in pixels
        image (str): name of image
    Returns:
        str: message to be shown to user
    """
    if "inverted" in image:
        time_type = "processed"
    else:
        time_type = "uploaded"
    width, height = size
    deets_message = "Time {}: {}\n" \
                    "Image size: {} x {}" \
        .format(time_type, time, width, height)
    return deets_message