implementation XHWebImageCache logic