Refactor photo uploader and add more docs

Quick refactor and added a few docs.