- capInsets
- This argument lets you specify the top, left, bottom and right inset (the sizes of your images).
- resizingMode
- Controls whether the areas are stretched or tiled.
Consider the following image, the capInsets specify these borders:

The resizing mode controls whether the image is stretched or tiled

This can be used from a background thread.