Why do I have to hold my breath when an X-ray is been taken?

 When you breathe, your diaphragm and chest moves.  this movement may blur the image. If the image is blurred  the xray will have to be repeated.
For this reason you are asked to hold your breath to prevent movement.
You will also be asked to remain as still as possible while your x-ray is being taken.