Image

Is there a simple script to detect if an image loads,
then if it doesn't load
it loads a default image?