Spontaneous optical pattern formation in a nematic liquid crystal with feedback mirror