I'm not sure whether you want to add html/ccs borders or just create an image with a border. Here's how I'd go about creating a simple image with an equidistant border.