Minimum / Maximum management (and gamma again... )

Improving the generalisation to 32bit images.
Fixing some bugs on minimum/maximum management.