Removes hard coded scaling

Calcules scaling for ds9 from the image rather than
hard coding the values.  This will make it less fragile
if the value in the mock data is changes.
Moves calculation of readcorner into function
Adds a comment explaing readcorner for amps