fix for bad ssl while fetching images