fix images not round-tripping; don't worry about 0-length uploads; fixes #9