Added image error handling

Hi could you please merge this small change? I think it's useful. Thank you.

If an image cannot be downloaded it throws lots of exceptions during
drawing, added onError handler to the images solves this issue.