Added missing import
Read calexp from input file, not the version in the outputs.  Also handle
the case that the input file is a single image, not an Exposure
Set the variance approximately correctly even if the input image is background subtracted
Add a dummy detector