Add caching to background pic
Minor restructuring of cache