Can you explain the basic principles behind how an x-ray image is produced?

Try to respond with these in mind