Added a calculation for direction of gradient
and function to round of to the nearest 45 deg
Added a nonMaximumSuppress function
Edited the way the direction map is passed by simply adding it as a property to the returned image data