Improve errors on image upload