A graphic piece can be used to add a border to an image. The graphic piece is created by creating a graphic image foreground image and a graphic image background image. The foreground and background images are merged into a graphic image file, the contents of which specify pixel colors and pixel color weights of a graphic piece capable of being added to an image.