Refactor the rendering functions for both 6bit and 24bit methods.
Added support for 24Bit ANSI files. <http://picoe.ca/2014/03/07/24-bit-ansi/>