Now storing xmin, xmax, ymin, ymax in the output image header.