Raspicam: added commit function.