implement basic box rendering