Updated image caching. Pulled data from DB instead of json if existed.