Light-induced shape-memory