Fix multifileupload bugs

I tried to get the multi-imageuploader working, but I had to make a few small modifications to fix it.