Added parameter for bitmap flipping, and moved optimized text creation.