An introduction to medical imaging