Sends an image through a processing pipeline.
    Applies all (relevant) provided options to a given image.
    Args:
        image: An instance of a PIL Image.
        options: Options to apply to the image (i.e. resolutions).
    Returns:
        A list containing instances of PIL Images. This list will always be length
        1 if no options exist that require multiple copies to be created for a single
        image (i.e resolutions).

def __pipeline_image(image, options):
    '''Sends an image through a processing pipeline.
    Applies all (relevant) provided options to a given image.
    Args:
        image: An instance of a PIL Image.
        options: Options to apply to the image (i.e. resolutions).
    Returns:
        A list containing instances of PIL Images. This list will always be length
        1 if no options exist that require multiple copies to be created for a single
        image (i.e resolutions).
    '''
    results = []

    # Begin pipline

    # 1. Create image copies for each resolution
    if 'resolutions' in options:
        resolutions = options['resolutions']  # List of resolution tuples
        for res in resolutions:
            img_rs = resize(image, res)  # Resized image

            # Add image to result set. This result set will be pulled from
            # throughout the pipelining process to perform more processing (watermarking).
            results.append(img_rs)

    # 2. Apply watermark to each image copy
    if 'wmark-img' in options:
        wtrmk_path = options['wmark-img']
        if wtrmk_path:
            if len(results) == 0:
                image = watermark_image(image, wtrmk_path)  #watermark actual image?
            else:
                for i in range(0, len(results)):
                    results[i] = watermark_image(
                        results[i], wtrmk_path)  #watermark actual image

    if 'wmark-txt' in options:
        wtrmk_txt = options['wmark-txt']
        if wtrmk_txt:
            if len(results) == 0:
                image = watermark_text(image, wtrmk_txt)  #watermark actual image?
            else:
                for i in range(0, len(results)):
                    results[i] = watermark_text(results[i],
                                                wtrmk_txt)  #watermark actual image

    # Fallback: Nothing was done to the image
    if len(results) == 0:
        results.append(image)
    
    return results