Why? If the requested image doesn’t exist, a 404 error seems good. Added a alt attribute seems a better idea.