Added 8-connectivity to canny