Add round(x)/round(y) at the end of calculating the origin of arrow to avoid blurring drawing.