xml image generation