Image borders are handled by mirroring the pixels next to the edge.
Run a filter to see the result here.