'**SUMMARY**
Retrieve an Image-object from the camera.  If you experience problems
with stale frames from the camera\'s hardware buffer, increase the flushcache
number to dequeue multiple frames before retrieval
We\'re working on how to solve this problem.
**RETURNS**
A SimpleCV Image from the camera.
**EXAMPLES**
>>> cam = Camera()
>>> while True:
>>>    cam.getImage().show()'

def getImage(self):

    if self.pygame_camera:
        return Image(self.pygame_buffer.copy())
    if (not self.threaded):
        cv.GrabFrame(self.capture)
        self.capturetime = time.time()
    else:
        self.capturetime = self._threadcapturetime
    frame = cv.RetrieveFrame(self.capture)
    newimg = cv.CreateImage(cv.GetSize(frame), cv.IPL_DEPTH_8U, 3)
    cv.Copy(frame, newimg)
    return Image(newimg, self)
