Added support for margins, expanded upon table support.
Made changes for image scaling, not finished yet.