fixed buffer overflow
(buffer size calculation)
renamed Camera.getPicture to Camera.takePicture
js seems to use takePicture
implementation is still the same as in Capture module
--> probably broken
fixed memory leak