Fixed scaling based on AnchorX and AnchorY.
Simplified 3d transformations.