fix: url2pathname before trying to open an Image file

when a file's name has spaces or other special characters, its corresponding url do not exactly match its OS path, so a url2pathname is needed before trying to open the Image file with PIL....