Added the integer type-casting for input ROI masks for mean ROI timeseries extraction