Joint Deep Image Restoration and Unsupervised Quality Assessment