added basic camera capture code