Update image_fetcher.hpp to handle exceptions