Support varying background image border size in an array

Derived from #17.