one step before finalization of rgb nifti