abstracted out base imgur fucntionality to lib/imgur/base.rb