Cache images into local storage for offline use