Changed MeasureImage to be easily callable as a module from other programs.  Edited MeasureNight to do that rather than call MeasureImage via subprocess.