flipped x and y in atan2 to fix angle
changes non-maximum suppression to compare pixel magnitudes parallel to gradient angle instead of perpendicular. output is spuer grainy. hopefully hysteresis cleans it up