def image(self):
        """
            Generates the image using self.genImage(),
            then rotates it to self.direction and returns it.
        """
        self._image = self.genImage()
        self._image = funcs.rotateImage(self._image, self.direction)
        return self._image
def image ( self ) : self . _image = self . genImage ( ) self . _image = funcs . rotateImage ( self . _image , self . direction ) return self . _image
Generates the image using self.genImage(),
            then rotates it to self.direction and returns it.