ENH: better cutting heuristic

* Deal properly with flat regions
* Adapt the spacing to the size of the image

Typically these changes are important for the plot_nifti_simple.py file