Added checkimg and also made mask necessary for fslmask.