added uploading of pictures functionality