Add upload buttons for images and documents.

- Add buttons to the UI
- Fix bug in creating uuid for images and docs.