BUG: Prevent infiinte loop for bad cases in BABC

If bad input images are provided, an infinite loop can occur.  Simply give
and error message if 10 correction steps are reached without resolving the
issue.