How do X-ray Machines Work?

X-Ray machines contain a Cathode Ray Tube (CRT) of which rays are suddenly stopped using obstacles which generate X Rays. X rays can pass through thin material such as skin.