How's this for a crazy idea/project?

People have built low def visual sensors before, like a matrix of 5x5 light sensors and a focusing lens, test the differential values between the sensors and you would have a basic camera.
Alternativly just use a nintendo gameboy camera, it has many funtions such as edge detection built in and you can talk to it with SPI.
I have also seen image scanners made from optical mouse sensor chip's, also SPI