Add border size and pan offset configuration