video uploader; refactored image uploader