Log image loading errors only in DEBUG