This is a JS module that handles image caching in Titanium