Address issue #471 

Added an eps parameter to prevent problems when regions of the image are at constant intensity, as discussed in https://github.com/scikit-image/scikit-image/issues/471

Unit test included.

(sorry, couldn't find a way to attach this pull request to the previous issue!)