Added image error handling

If an image cannot be downloaded it throws lots of exception during
drawing, add a onError handler to the images solves this issue