Linux camera capture code