Improve parsing of images and offline caching.