Fallback to local images when Cloud Files breaks?
In javascript, you can listen to the image's onerror event listener.

set the source as normal. in onerror, set this.src to your local image path:

&lt;img src="//somecdn.com/cat.jpg" onerror="this.src='/localpath/cat.jpg';" /&gt;​


you could use jquery to loop over all images on the page and add the onerror event listener