Active confocal imaging systems and methods for visual prostheses