Add support for caching jpg-images.