Multipurpose Image Quality Assessment for Both Human and Computer Vision Systems via Convolutional Neural Network