load_globals now creates arrays of the same type as the initial fits
file (as specified by BITPIX), global_data.img now holds a FitsImage so
that we only need to load it once.
fixed bug where dcurve was not being stored in global data