added the feature of upload a photo in the problem