Support os.PathLike in Image
Support os.PathLike in Image

`os.path.splitext` was all that was needed. Any further processing is already handled with `os`'s support for `os.PathLike`.
ipython/ipython,ipython/ipython