Also ignore IndexError which may happen for some PNG images.