Fix #1337: imagelist multiple upload

Fix issue #1337.
I don't know a exact fit for this, but its work.