Use max rather than sum along an axis

Analog to SPM maximum intensity projection