Various changes.
Changes to accomodate new conversion to fits which does not bin 2x2.  Also changes to accomodate better marking of jpegs.