Proposed solution for #814

By not passing the output file to `knit` it should use the default
location for which the relative path to the images should be ok.