add parameters; allow use sequences of images