add option to save registered and/or input frames
allow registration reference frame to be configured