teach knitrscript.R to handle image paths successfully, closes #10