This tutorial offers two basic strategies to add borders to your images. The two strategies represent two distinct logics of achieving the same result: (1) creating a mat above your image and cutting out an opening in it to see the underlying image, or (2) modifying the canvas that underlies your image. The choice of the option depends on the image you have.