Fix cache issue when downloading v1 images
As images from v1 repos don't have a sha256
hash, we were using the name
as the glide cache key. In some cases (e.g. repo icons), this caused false re-use of a cached image. Now we use the first mirror and the file name as the cache key.