Apparatus is provided including an intraocular device which is implanted entirely in an eye of a subject and includes photosensors which detect photons representing an image in a gaze direction of the subject, and stimulating electrodes which apply currents to the retina. The apparatus further includes an extraocular device including an imaging device which captures a wide-field image. The apparatus further includes processing circuitry which (i) receives the wide-field image from the imaging device of the extraocular device, (ii) receives a signal from the photosensors of the intraocular device, (iii) based on the signal from the photosensors, process the wide-field image from the imaging device to generate image data representative of a sub-portion of the wide-field image, and (iv) cause the electrodes to apply currents to the retina based on the image data. Other applications are also described.