def image(id): '''fetch a base64 encoded image from the db''' c = CDN() file = c.find_one(id) return file['image']