fixed new projective transform code