Added code to create a sub-image of the master image, extracting only columns that meet IMAGETYPE and EXPTIME criteria.