don't remove image directory if it was not created by Flask-FlatPages-KnitrPandoc
use knitr options instead of tempdir