added image generation and sharing