modified export and import images