Image classifier with neural network for image recognition