Added options and fix Firefox bug

- Adds padding option
- Fixes Firefox bug not reporting SVG element widths correctly