Artificial neural network for image processing