normalized gradient magnitude and used scale in non-max. sup. output
wrote basic hysteresis, thresholds need tweaking