fixed hasMany in image upload