line cap and dimensions bindings

We should probably not export this, but we need to fix the module exports for this module anyway.