Added offline support with cached images