fix: image uploads are sometimes incompletely