added logic to upload to imgur API