moving named window function out of loop
adding HSV tuning utility