The following program is a typical task with two input images and an output one. The easiest way to create a new task is just to start with this working template and modify what is needed.