Adding gradient image generation