Added URL redirect caching

This will be useful if there are different URL's that redirect to the same image URL. For this case, we are currently ending up with the same image being cached multiple times.

This speeds up also the loading time, because no expensive http call is made to figure out, that the image is already cached.