elimiates top 1% of pixels when masking maximum
combined merrygotrace and ff

next step is to organize parameter table and some code housekeeping