Spatial rogue waves in a photorefractive pattern-forming system