No-reference image and video quality assessment for user-generated media