No-Reference image quality assessment based on localized gradient statistics: Application to JPEG and JPEG2000