Updated generate image