1. An apparatus comprising: an inspection tool to capture a subject image of at least a portion of a mask; and a reference image generator to identify an area of a defect or contaminant of the mask in the subject image and to replace image data in the area of the defect or contaminant with image data not having the defect or contaminant to generate a reference image.