finish r image generation