edgeSnap method

To implement feature request in #237

Added edgeSnap method in Image Class

My first pull request ever. Let me know if I have missed anything. I'll make the changed ASAP