Fixed multiple image upload bug