Fixing image upload after retry