Optical pattern formation in a Kerr-like medium with feedback