Add border width option to to_img.

It's probably more flexible to let uses decide the border width they want.