Edge detection half implemented