in: this.one("unveil", function() { added: var original = this.getAttribute('src'); this.onerror = function(e) { this.src = original }; Great if the image fails it reverts back to original instead of broken image.