Rewritten drawing algoritm.
EaselJS 0.7.1 compatibility.