<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def image(self, render_mode):
 """Return an image generated with a particular render mode. Parameters render_mode : :obj:`RenderMode` The type of image we want. Returns ------- :obj:`Image` The color, depth, or binary image if render_mode is COLOR, DEPTH, or SEGMASK respectively. """

        if render_mode == RenderMode.COLOR:
            return self.color_im
        elif render_mode == RenderMode.DEPTH:
            return self.depth_im
        elif render_mode == RenderMode.SEGMASK:
            return self.binary_im
        else:
            return None