Find out min/max value in Image