fix cdn image upload.