gallery update: P diff to vectors (template)