batch image generation optimized