Switched to float32 for internal calculations.

Profiling showed that the inner loop in resampleAxis takes
99% of the CPU time. No further optimization made sense.

Resample now can handle the generic image.Image.