Improve diagnostics for image loading
Helps to notice the "barcode.gif" attachment on Thalys emails is actually a PNG file...