Image quality assessment by using neural networks