Started using the affinetransformation in the drawnobject class. Have to change doublepoint to point2d before continuing though. Added a bunch of deprecations.