fixed crash when image data corrupted