Refactors rendering methods to rendering obj