Also copy the type
Export the IMAGE tag name correctly

Also add more debugging
Add more debug