refer to github image-gen info