handle connection error in imgur
add retry in getting image data