How to export the image