Problem with texture paint

I have this problem, is a basic cube with bevel:

I tried everything i could find, like bleed and so. I wonder if there is a fix or someone can recomend me a program to pain textures in the object with a stencil mode like in blender?.

Attachments