Fix error for older pyfits versions
Remove some debugging writes in test_interpolatedimage