Tool breakage by comparing tool image, length before and after machining