Updates Image.

def update(self):
        '''
        Updates Image.
        '''
        if self.hasproxy():
            img = Rgbd()
            data = self.proxy.getData()
            img.color.data = np.frombuffer(data.color.pixelData, dtype=np.uint8)
            img.color.data.shape =  data.color.description.height, data.color.description.width, 3
            img.color.height = data.color.description.height
            img.color.width = data.color.description.width
            img.color.format = data.color.description.format

            img.depth.data = np.frombuffer(data.depth.pixelData, dtype=np.uint8)
            img.depth.data.shape =  data.depth.description.height, data.depth.description.width, 3
            img.depth.height = data.depth.description.height
            img.depth.width = data.depth.description.width
            img.depth.format = data.depth.description.format

            img.timeStamp = data.timeStamp.seconds + data.timeStamp.useconds * 1e-9


            self.lock.acquire()
            self.image = img
            self.lock.release()