Added image caching to rakefile