They are often used to help diagnosed fractured bones, look for injury or infection and to locate foreign objects in soft tissue. Some x-ray exams may use an iodine-based contrast material or barium to help improve the visibility of specific organs, blood vessels, tissues or bone.