Improving error handler, including error on image upload