Fixed file matching bug

f['name'] becomes "i" which matched in my case all the inline images. The result was that all the images were replaced by the last image.
I renamed f['name'] to ft (FileTrimmed), now it should work just fine.
Merge pull request #9 from johndekroon/patch-1

Fixed file matching bug