fixed colormap indexing, added tests for text and fixed the render function of text