change definition of export_img