Add reductor-generator mode.

Added new task mode for reading a series of images and generating an output, e.g generating an output image for each the four images.