catch exceptions while fetching images