Cache downloaded images. Fixes #16.