added error handling to lazily loaded image