improved DrawTransform