Added the upload picture function for multiple pictures.