Example on how to cache images/files in Titanium