refactor render code; add 16 bit glyph draw