The Mathematics of Medical Imaging: A Beginners Guide