issue #1704: Affine transform