Bug fixes with memory issues. Also removed DrawGlyphs as it is deprecated.