Fix bug of creating a directory 0x0 for the cache.
The data image is now saved in setCacheResponseBlock to ensure that when the request is finished, the image is also saved.