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()

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 < 15:
	os.unlink('gregTest.jpg')
	img = cam.capture('tempGregTest.jpg')
	oc.rename('gregTempTest.jpg', 'gregTest.jpg')
	time.sleep(.25)
	x +=1
exit()

Reduce picture loop to 15 pictures