Add pageTotal to Data property.

Fix bug where the utils.paperFormat property gets changed when in
landscape mode.
Fix bug where repeatable template/element get applied to all the pages
rather than only the pages added after the template/element had been
added.
Fix bug where addImage translated incorrectly..