refactored rendering engine to support multiple icons per line.