texture paint jagged

When using texture paint brush in the 3D viewport I am getting this strange jagged line instead of a nice edge line.
Solved using external editor gimp.
Post can be deleted.