code: def __create_image(self, inpt, hashfun):
          
          if hashfun not in generator.HASHES.keys():
              print ("Unknown or unsupported hash function. Using default: %s"
                     % self.DEFAULT_HASHFUN)
              algo = self.DEFAULT_HASHFUN
          else:
              algo = hashfun
          return generator.generate(inpt, algo)
docs: Creates the avatar based on the input and
          the chosen hash function.