SOLVED:
To set a custom border, or to be more specific, a custom padding:
Open up the corresponding style file of the item you want to edit, and set the padding to the size of the border in the picture. or vary it, depending on your likings, if you have transparency for example.
code:
element[id=atom(idUserTileContainer)]
{
padding:rect(6,6,6,6);
}
element[id=atom(idUserTileContainer)][class="Medium"]
{
padding:rect(6,6,6,6);
}
element[id=atom(idUserTileContainer)][class="Small"]
{
padding:rect(4,4,4,4);
}
In this piece of code, I set the paddings for the large and medium sized display pictures to 6, and the paddings of the small display picture to 4. The paddings match the size of the borders coded in the corresponding images.