fixes #28 and also fixes yihui/knitr#544: should decode image URL before checking if the file exists

e.g. `foo bar.png` will be `foo%20bar.png` in src after markdownToHTML(), but we really need to use restore the URL