Support loading of CORS-enabled background images

[#74961524]

And handle cases when image doesn't provide CORS headers too.