Certain compounds of barium, such as barium sulfate, are not toxic and can be put in the body. We can see where the barium travels in the body by X-rays and this can tell us whether there are problems, such as blockages. The barium sulfate builds up inside the body accumulating in organ systems. Barium sulfate absorbs the X-Rays as they pass through the body and an image is formed from the points where the rays have not passed through. It is useful because it provides a reasonably detailed image from very limited radiation exposure, compared with a CT scan for instance. Barium sulfate can be used as a pigment, too.