Catch bad image format exception and provide warning.