Add error handling to remote image loading