Modified Edge Detection Algorithm

I made a small fix in the edge detection algorithm, which fixed some
problems with edge detection on simple images. (Such as simple clip art
type images). This also makes clearer edges on all images, creating
better edge detection and making the colors returned by the separate
algorithm more apparent.