Add support for background images and retry.