fix: url2pathname before trying to open an Image file