Fix missing argument to apply_affine_transform()