DEV: Add more verbose logging for image uploads (PR #13270)

Image optimization fails randomly (very rare) without a trace and it is near impossible to find culprit image, reproduce the issue and attempt to fix.

GitHub