Added a check for the image file in the cache, before trying to request it externally.