HTML if image is not found
The best way to solve your problem:
<img id="currentPhoto" src="SomeImage.jpg" onerror="this.onerror=null; this.src='Default.jpg'" alt="" width="100" height="120">
onerror
is a good thing for you :)
Just change the image file name and try yourself.
Well you can try this.
<object data="URL_to_preferred_image.png" type="image/png">
<img src="URL_to_fallback_image.png" />
</object>
this worked for me. let me know about you.