rewrote fitsconvert.py after understanding PIXVALUE problem