Added code to upload the picture