Image Space Approach for edge detection

First version of the code.