Added cache file manager and smooth streaming of photos