Added image caching functions
Added image caching functions