Fix image upload regression.