You may already be doing this, but my best tip is to pipe with the tip a few centimeters above the top of the cookie, letting the icing fall onto the cookie. This helps to get smooth, straight or curved lines. Another thing to try is rotating the cookie either as you pipe or pipe in sections, rotating before each one.
Lots of practice will probably have you piping perfect circles soon!