bat edge-detection added