Circle detection and boundaries improved