Fix issue with get_medical_images call