What's the value of the
File.Exists(filePath)
? I can get the correct imagesource by your code from your path if the file is existed.