4/10/14 - added contrast function
4/11/14 - fixed calcHueAvg function