Fixes #107; Add a file cache for generated images