update modal generate image