fixed adding of preview images in the automation script