fix a bug about downloading img(it will failed sometime when sending GET request to download img)