script to generate images and user model update