Nifti current orientation bug

This was a bug originally reported in this pull request: https://github.com/vistalab/vistasoft/pull/26

After some discussion, Bob had the idea to make the maximum value related to the input values in some way. Proposed here is a solution for that. @rfdougherty @tmq010