working sg -> imgur -> mongo
factored out upload