uploading images
updating image array