old_contents: import picamera as p
  import os
  import time
  
  os.chdir('/home/pi/Desktop')
  
  cam = p.PiCamera()
  cam.resolution = (320,240)
  cam.hflip = True
  cam.vflip = True
  
  x = 0
  
  while x < 50:
  	#os.unlink('greg.jpg')
  	img = cam.capture('gregTest.jpg')
  	time.sleep(.25)
  	#oc.rename('gregTemp.jpg', 'greg.jpg')
  	x +=1
  exit()
  
new_contents: import picamera as p
  import os
  import time
  
  os.chdir('/home/pi/Desktop')
  
  cam = p.PiCamera()
  cam.resolution = (320,240)
  cam.hflip = True
  cam.vflip = True
  
  x = 0
  
  while x < 50:
  	os.unlink('gregTest.jpg')
  	img = cam.capture('tempGregTest.jpg')
  	oc.rename('gregTempTest.jpg', 'gregTest.jpg')
  	time.sleep(.25)
  	x +=1
  exit()
  
subject: Add temp file sequence to take picture file