added options for choosing HSV threshold

added option for AVG or MAX/MIN values collected from center of pupil
circle.