Almost working edge detector. Non-max suppression doesn't seem to work and hysteresis isn't completely correct yet