Alloy version of the best practice to cache remote images locally.