[Olena-patches] r3697: inim: Implement line detection with boxes