Finishes the video command and refactors the photo command. Nothing bug tested yet.