Added ROI clipping code for timeseries stacks