added suport to upload one array of images