def post(self):
		upload = self.get_uploads()[0]
		latitude = self.request.POST.get('latitude')
		longitude = self.request.POST.get('longitude')
		image = ImageBlob(image_blob_key=upload.key(),latitude=latitude,longitude=longitude)
		image.put()
		
		memcache.delete("images") #Reset memcache
		self.response.out.write(image.key())
	def get(self):
		links=memcache.get("images")
		if not links:
			links=[]
			image_blobs =ImageBlob.all()
			for i in image_blobs:
				links.append(images.get_serving_url(i.image_blob_key))
			memcache.set('images',links,60*60)
		self.response.headers.add_header('Content-Type', 'application/json')
		self.response.out.write(json.dumps(links,indent=4))