Refactor renderer's helper

Ref #17