Here is a simple script that takes a picture with the Rpi camera