Determination of critical factors for fast and accurate 2D medical image deformation