implemented extracting HSV masks