Method to export images