Moved rendering functions to rendering.clj