Do not log image data in any circumstances.

Do not log image data in any circumstances.
Fix #843