Save image in cache before calling completion block