added feature to take fotos with the raspberry pi camera module. also added logging (for flashing)