This line should send a str to read_image instead of a pathlib.Path, unsupported.
str
read_image
pathlib.Path