# interface problem for image recognition

I made the following code that should recognize the image imported from the pc. If I do it for the first time it's fine, but if I load a second image it leaves me the name of the previous one. You could check the code and tell me where I'm wrong. Thanks for your help.

Row[{FileNameSetter[Dynamic[file]], Dynamic[file]}]