new_contents: import time
  import picamera
  import RPi.GPIO as GPIO
  
  GPIO.setmode(GPIO.BCM)
  GPIO.setup(17, GPIO.IN, GPIO.PUD_UP)
  
  with picamera.PiCamera() as camera:
      camera.start_preview()
      GPIO.wait_for_edge(17, GPIO.FALLING)
      time.sleep(5)  # new
      camera.capture('/home/pi/Desktop/image.jpg')
      camera.stop_preview()
  
subject: Create cameraselfie.py