Relic implementation, fix some getTextImage typos, update chat logic