'**SUMMARY**
Retrieve an Image-object from the virtual camera.
**RETURNS**
A SimpleCV Image from the camera.
**EXAMPLES**
>>> cam = VirtualCamera()
>>> while True:
>>>    cam.getImage().show()'

def getImage(self):

    if (self.sourcetype == 'image'):
        self.counter = (self.counter + 1)
        return Image(self.source, self)
    elif (self.sourcetype == 'imageset'):
        print len(self.source)
        img = self.source[(self.counter % len(self.source))]
        self.counter = (self.counter + 1)
        return img
    elif (self.sourcetype == 'video'):
        frame = cv.QueryFrame(self.capture)
        if frame:
            img = cv.CreateImage(cv.GetSize(frame), cv.IPL_DEPTH_8U, 3)
            cv.Copy(frame, img)
            return Image(img, self)
        else:
            return None
    elif (self.sourcetype == 'directory'):
        img = self.findLastestImage(self.source, 'bmp')
        self.counter = (self.counter + 1)
        return Image(img, self)
