Foundation Models in Medical Imaging: A Review and Outlook