Made margin parameter an option in set_header/set_footer.

The margin paramater is still supported for backward compatibility.
Added checks on number of header/footer images.
Added option to not scale heaader/footer with page.

Issue #134.