How X-rays help diagnose root, bone, and tooth damage