Added generator for copying images
fixed merge issue