def post_image(url, filename)
      post(url) do |req|
        req.body = open(filename).read
      end
    end
def post_image(url, filename)
      post(url) do |req|
        req.body = open(filename).read
      end
    end
Public: A helper method for POSTing an image

 url - the URL to POST the image to
 filename - the path or URL to the image to upload

 Returns a Faraday::Response