Cache cmd images on first request. All versions of file are removed from cache on save