added error handling for home page main image