Gracefully handle a corrupt image file