Catch errors when loading an image for a node and set the image src back to its original

@youngca @scottnc27603 would you mind reviewing?