Adding throttling for image generation