Fixed Interval._eval_imageset

Interval._eval_imageset was not working well the give function was not
monotonic. Now it is evaluated by finding out the maxima, and minima of
the function by solving the derivative of the function in the given
interval.