Added support to export image in Linux Mac