Fixing rendering with margins.
Merge pull request #4 from colefichter/fix_margin_rendering

Fixing rendering with margins.