Nicola: fixing image generation script