Modified the mask correction functions to apply the coregistration once it's done, so that the coregistered mask is updated.