Very basic/crude example of a way to detect borders around images.