Reduce the number of inodes used by image data cache

This will reduce the amount of inodes used by the image data cache.
Merge pull request #23 from androa/patch-3

Reduce the number of inodes used by image data cache