An image can not be considered both exported and imported at the same time, so stop consider it as imported after we consider it exported. Also add an automatic regression test.
An image can not be considered both exported and imported at the same time, so stop consider it as imported after we consider it exported. Also add an automatic regression test.