Ensure the data chunks of the image upload are received in-order

Fixes #10