caching images to memcache, fixed double request issue