module for portrait generation