Error handling for failed image uploads