Fix a crash when FWHM extends outside the frame.
Use a more robust FWHM calculation.

It now fits gaussians directly, stepping the
width parameter by 0.25 pixels out to the full
radius.
Remove obsolete functions.
Support filenames like prefix.XXXX.fits.gz. Fixes #10.