Project with arduino UNO R3 and LinkSprite JPEG Color Camera TTL Interface

and SDcard Shield SHD-SD [EF02028]

the problem is i need to do image prossing with the camera (different between two image )
if there are any difference use the relay and the light on if there are no difference lights of
code is the only problem here .

PLZ help ....