added filename to the bad image file exception