Added functions for getting the width, height, and rgb matrix for text rendering.