Cache Functionality

Caches images for additional optimization