Fix image upload after token expiration