Skip image instead of failing when the image is corrupted (fix #69).