Changed how text was transformed. I did the extra work because some diagrams would start to look corrupted. I beleive this is a bug in Raphael.