added edge detection
Related git tag:
    imageon 6b4cea1866a2b40a335a6b0746c698ad8375ca87