ImgSaver: add general case

ImgSaver now has a generalized routine for iterating over output
ImgPluses. In theory it should now be able to support any output image
types (tested with ArrayImg, PlanarImg and CellImg).