Call external program to take photos. To use Raspberry Pi official camera you can use command below. raspistill --output {{file}} --nopreview