add --retry option to image uploader