CreateImage: Fix cross origin attribute not being set