Remove minor warnings
Add a better default behavior for bogus JPEG2000 encoded image