Adding srcImage.onerror handler.
Ensure we are dealing with a valid image.
Merge pull request #39 from diegocr/patch-2

Adding srcImage.onerror handler.