additions for image generation