Skip images that produce invalid image format java bug