Sometimes a dye needs to be given through the vein to help the doctor better visualize structures inside the body.