Good! I prefer your first method, since it works fine and it's much easier.
Now how about ?
By the way, you might want to be more precise in the way you've defined your contour. As it is, is a domain and not a contour. You also didn't give an orientation.