Updated with good CSS for mobile view.
Updated with functionality
1. To save it as binary data and show it in image below button.
2. Download it as image.