Some refactorings.
Changed "distanceNormalizationFactor" from const value to property. It was important change to make bilateral-filter's effect adjustable.