Replacing AffineTransform as extension