Fix shouldFetchImageSamples method in NetworkUtils