`str.split(x.ImageComments)` assumes that x.ImageComments is a string. This should be refactored to it can be anything that supports `split()`.
str.split(x.ImageComments)assumes that x.ImageComments is a string. This should be refactored to it can be anything that supportssplit().