possible fix for issue 52

Here's a change that provides one possible for for issue 52:

  https://github.com/yihui/tikzDevice/issues/52

Not sure if this is the appreciated way of submitting changes, just getting used to github.