Changes to compute peak and extract_roi_traces