control_image = make_inpaint_condition(init_image, mask_image)
```  
Now generate an image from the base, mask and control images. You'll notice features of the base image are strongly preserved in the generated image.  
```py
prompt = "concept art digital painting of an elven castle, inspired by lord of the rings, highly detailed, 8k"
image = pipeline(prompt=prompt, image=init_image, mask_image=mask_image, control_image=control_image).images[0]