DrawBorder() function and associated graphics