Added imgcache.js and updated version to work with hydration