How to x-rays work?