refactor existing code for image get from cache + load (if not found) + save in cache, in a new static method: Image.loadFromCache(URL location)