The web address for NOAA is no longer valid. So, the new address had to be provided.
Old address: http://www.nnvl.noaa.gov/imageoftheday.php
new address: https://www.nesdis.noaa.gov/content/imagery-and-data
'Image of the day' has a new landing page everyday. So the code had to slightly altered to fetch image from new address.