I think you were missing the point. When you use import, it needs a filename, but what if you want to do something else with the image. You then need to reopen the file and process it. The way I showed avoids the need to reopen the file. It can also be used to send screenshots, without even writing a local copy, like thru email or ftp, or something.