use knitr api to determine figure filenames
Merge pull request #10 from sachsmc/bugfix

use knitr api to determine figure filenames