Text this: The performance of ChatGPT on medical image-based assessments and implications for medical education