Parameter tweaks.
Changed to bilateral filter by default.
Added variables to allow runtime changes of filter settings.