Fixes the defineShape-data transformations for drawing to Canvas
Testcases used for defineShape testing and debugging