Adds some minor rendering related fixes and tweaks.