tweak pixel positions and fix the diagonal spline orientation