Added image caching + download

Currently only applied on the topic page. Images are large at the moment
to test whether the cache is actually working. Cache is a two level
cache using both memory and disk.