support for rendering PDF

Hello

i noticed, that even when i passed render='pdf' to `capturejs_capture`, the format would automatically change to 'png'. I introduced this small patch which allows to render to PDF and is backward-compatible.

Cheers!