takePic: clear memory
takePic: clear memory

In general: Imagedestroy is used to clear the memory BEFORE the script ends. This is useful to keep memory usage DURING the script to an acceptable level.

andreknieriem/photobooth,andreknieriem/photobooth,andreknieriem/photobooth,andreknieriem/photobooth