# install picamera
import picamera
import time
import datetime
import os.path

FNAME = datetime.date.today()
FTIME = str(time.strftime('%I:%M %p'))
SavePath = 'photos'
SaveName = os.path.join(SavePath, str(FNAME) + '|' + str(FTIME) + '.jpg')


with picamera.PiCamera() as camera:
    camera.resolution = (2592, 1944)
    camera.start_preview()
    time.sleep(2.5)
    camera.capture(SaveName)
    camera.close()

@@ -236,17 +236,38 @@
 .jpg')%0A%0A
-%0A
+def take_photo():%0A    
 with pic
@@ -294,16 +294,20 @@
 camera:%0A
+    
     came
@@ -335,16 +335,20 @@
 , 1944)%0A
+    
     came
@@ -370,16 +370,20 @@
 w()%0A    
+  
+  
 time.sle
@@ -390,16 +390,20 @@
 ep(2.5)%0A
+    
     came
@@ -423,16 +423,20 @@
 veName)%0A
+    
     came

make camera callable