I think that you must use javascript. You can use something like this:
var imgs=document.getElementsByTagName("img");
for(i=0;i<imgs.length;i++)
imgs[i].onerror=function(){
imgs[i].parentNode.removeChild(imgs[i]);
}
with this function you will remove all images with errors.
mck89
2009-08-26 10:18:07