Image quality assessment for Digital documents