Fixes and tweaks various rendering related things.