def get_preview_image(self, name, gender):
        """Return raw image data for species placeholder pic.

        I don't think this is actually used anywhere in game. Some mods don't
        include it."""

        species = self.get_species(name.lower())
        try:
            try:
                key = self.get_gender_data(species, gender)["characterImage"]
            except __HOLE__:
                return None
            return self.assets.read(key, species[0][1], image=True)
        except FileNotFoundError:
            # corrupt save, no race set
            logging.warning("No race set on player")
            return None
dataset/ETHPy150Open wizzomafizzo/starcheat/starcheat/assets/species.py/Species.get_preview_image