changed threshold to HSV, works better now