export to base64 image and open file download popup