Updated generated image script