fix the multiple images upload bugs #13 #33