RENDER_FMT_SMD wip for #7.

Yes I'm aware that this change has lots of issues.
Fixes #13. Should aid #59.