def get_hair_image(self, name, hair_type, hair_group, gender, directives):
        # TODO: bbox is from .frame file, need a way to read them still
        species = self.get_species(name.lower())
        image_path = "/humanoid/%s/%s/%s.png" % (name, hair_type, hair_group)

        try:
            image = self.assets.read(image_path, species[0][1], image=True)
            image = Image.open(BytesIO(image)).convert("RGBA").crop((43, 0,
                                                                     86, 43))
            return replace_colors(image, unpack_color_directives(directives))
        except __HOLE__:
            logging.exception("Missing hair image: %s", image_path)
            return
dataset/ETHPy150Open wizzomafizzo/starcheat/starcheat/assets/species.py/Species.get_hair_image