add some logging for img upload 500s