How X-rays Work